{template('../public/header.html')}

<!--订单列表-->
<div class="pad_10" >
    
    <div class="J_tablelist table_list" data-acturi="{:U('order/ajax_edit')}">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th width=25><input type="checkbox" id="checkall_t" class="J_checkall"></th>
                <th><span tdtype="order_by" fieldname="id">ID</span></th>
                <th align="left">产品名称</th>
                <th align="left"><span data-tdtype="order_by" data-field="name">姓名</span></th>
                <th align="left"><span data-tdtype="order_by" data-field="phone">手机号码</span></th>
                <th align="left">收货地址</th>
                <th align="left"><span data-tdtype="order_by" data-field="payway">付款方式</span></th>
                <th align="left">买家留言</th>
                <th align="left"><span data-tdtype="order_by" data-field="add_time">提交时间</span></th>
                <th align="center"><span data-tdtype="order_by" data-field="is_delivery">是否发货</span></th>
                <th width="40"><span data-tdtype="order_by" data-field="status">{:L('status')}</span></th>
                <th width="80">{:L('operations_manage')}</th>
            </tr>
        </thead>
    	<tbody>
			{$rs type='rs' pagesize='0' }
            <tr>
                <td align="center">
                <input type="checkbox" class="J_checkitem" value="{$rs('id')}"></td>
                <td align="center">{$rs('id')}</td>
                <td align="left">&nbsp; {:getProductName(rs('product_id'))}</td>
                <td align="left">&nbsp;{$rs('name')}</td>
                <td align="left">&nbsp;{$rs('phone')}</td>
                <td align="left">&nbsp;{$rs('address')}</td>
                <td align="left">&nbsp;{:getPayWay(rs('payway'))}</td>
                <td align="left">&nbsp;{$rs('message')}</td>
                <td align="left">&nbsp;{:stdTime(rs('add_time'))}</td>
               <td align="center"><img data-tdtype="toggle" data-id="{$rs('id')}" data-field="is_delivery" data-value="{$rs('is_delivery')}" src="__STATIC__/images/admin/toggle_{if rs('status')=1}enabled{else}disabled{/if}.gif" /></td>
                <td align="center"><img data-tdtype="toggle" data-id="{$rs('id')}" data-field="status" data-value="{$rs('status')}" src="__STATIC__/images/admin/toggle_{if rs('status')=1}enabled{else}disabled{/if}.gif" /></td>
                <td align="center">
                    <a href="javascript:;" class="J_confirmurl" data-acttype="ajax" data-uri="{:U('order/delete?id='& rs('id') )}" data-msg="您确定要删除“<font color=blue>{$rs('name')}</font>”吗？">{:L('delete')}</a>
					</td>
            </tr>
            {/$rs}
			{@empty for='rs'} <tr style="height:30px;"> <td align="left" colspan="9">&nbsp;&nbsp; <font color=red>暂无数据！</font></td> </tr>{/@empty}
    	</tbody>
    </table>
    </div>
	<div class="btn_wrap_fixed">
    	<label><input type="checkbox" name="checkall" class="J_checkall">{:L('select_all')}/{:L('cancel')}</label>
    	<input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('order/delete')}" data-name="id" data-msg="{:L('confirm_delete')}" value="{:L('delete')}" />
		<div id="pages">
			{@pager data='rs'}
				{$pager("total")} 条记录 {$pager("no")}/{$pager("count")} 页 {if pager("count")>1}{$pager("bar")}{/if}
			{/@pager}
		</div>
    </div>
</div>
{template('../public/footer.html')}
</body>
</html>